package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 卷封面
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_collect_card_cover")
public class CollectCardCover extends Model<CollectCardCover> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "cid", type = IdType.ASSIGN_ID)
    private String cid;
    /**
     * 上图片
     */
    @TableField("pic")
    private String pic;
    /**
     * 中图片
     */
    @TableField("middle_pic")
    private String middlePic;
    /**
     * 下图片
     */
    @TableField("down_pic")
    private String downPic;
    /**
     * 文字说明
     */
    @TableField("note")
    private String note;
    /**
     * 背景色
     */
    @TableField("bg_color")
    private String bgColor;
    /**
     * 按钮颜色
     */
    @TableField("bt_color")
    private String btColor;

    public void freeData() {
        this.cid = null;
        this.pic = null;
        this.middlePic = null;
        this.downPic = null;
        this.note = null;
        this.bgColor = null;
        this.btColor = null;
    }

}
